package com.lindroy.androidplayer.viewmodels

import androidx.lifecycle.ViewModel
import com.lindroy.androidplayer.utils.SingleLiveEvent
import com.lindroy.androidplayer.utils.mapSingle

/**
 * @author Lin
 * @date 2022/2/18
 * @function
 */
class CollectionViewModel : ViewModel() {

    private val backClickAction = SingleLiveEvent<Unit>()

    val backClickLiveData = backClickAction.mapSingle { }

    fun onBackClickListener() {
        backClickAction.postValue(Unit)
    }

}